Optimal. Leaf size=69 \[ -\frac{a \cos (e+f x) (a \sin (e+f x))^{m-1} \, _2F_1\left (-\frac{1}{2},\frac{m-1}{2};\frac{m+1}{2};\sin ^2(e+f x)\right )}{f (1-m) \sqrt{\cos ^2(e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0921402, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {2600, 2577} \[ -\frac{a \cos (e+f x) (a \sin (e+f x))^{m-1} \, _2F_1\left (-\frac{1}{2},\frac{m-1}{2};\frac{m+1}{2};\sin ^2(e+f x)\right )}{f (1-m) \sqrt{\cos ^2(e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2600
Rule 2577
Rubi steps
\begin{align*} \int \cot ^2(e+f x) (a \sin (e+f x))^m \, dx &=a^2 \int \cos ^2(e+f x) (a \sin (e+f x))^{-2+m} \, dx\\ &=-\frac{a \cos (e+f x) \, _2F_1\left (-\frac{1}{2},\frac{1}{2} (-1+m);\frac{1+m}{2};\sin ^2(e+f x)\right ) (a \sin (e+f x))^{-1+m}}{f (1-m) \sqrt{\cos ^2(e+f x)}}\\ \end{align*}
Mathematica [A] time = 0.0797154, size = 66, normalized size = 0.96 \[ \frac{a \sqrt{\cos ^2(e+f x)} \sec (e+f x) (a \sin (e+f x))^{m-1} \, _2F_1\left (-\frac{1}{2},\frac{m-1}{2};\frac{m+1}{2};\sin ^2(e+f x)\right )}{f (m-1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.206, size = 0, normalized size = 0. \begin{align*} \int \left ( \cot \left ( fx+e \right ) \right ) ^{2} \left ( a\sin \left ( fx+e \right ) \right ) ^{m}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a \sin \left (f x + e\right )\right )^{m} \cot \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\left (a \sin \left (f x + e\right )\right )^{m} \cot \left (f x + e\right )^{2}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a \sin{\left (e + f x \right )}\right )^{m} \cot ^{2}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a \sin \left (f x + e\right )\right )^{m} \cot \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]